<%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <jsp:include page="../basePath.jsp"></jsp:include>
    <title>数据核对</title>
    <style>
    .selectTD span{background:#eee}
    </style>
    <script language="javascript" src="page/datacheck/check_r12.js" charset="utf-8"></script>
    <script language="javascript" src="page/datacheck/not_passed.js" charset="utf-8"></script>
  </head>
  
  <body class="scrolling">
  	<input type="hidden" id="jobStatus" value="${jobStatus }">
	<div class="div">
	  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="2" >
        <tr>
          <td colspan="3">
			<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="point_bg">
	     	  <tr>
	     	  	<td align="left">数据日期：${currentBusiDate }<input type="hidden" id="busiDate" value="${currentBusiDate }"></td>
		     	  <td height="30"  align="right" >
		     	  	<input type="button" value="重新采集" class="button" id="reCollect" >
		     	  	<input type="button" value="重新核对" class="button" id="reCheck" >
		     	  	<input type="button" value="调 整" class="button" id="btnEdit">
                	<input type="button" value="保 存" class="button" id="btnSave" disabled>
                	<input type="button" value="取 消" class="button" id="btnCancle" disabled>&nbsp;&nbsp;
                	<input type="button" value="查看历史" class="button" id="btnHist">
		          </td>
		      </tr>
	     	</table>
		  </td>
        </tr>
        <tr>
          <td width="33%" height="78" align="left" valign="top" style="border-right:1px solid rgb(164,198,215);padding-right:5px">
            <div style="width:100%;height:100%;overflow:auto" id="checkItemDiv">
	          	<table id="checkList" width="100%" border="0" align="center" cellpadding="3" cellspacing="0" >
	<c:forEach var="def" items="${dataCheckDefs}" >
	          	  <tr><td title="${def.formulaDesc }" id="check_${def.defId }" class="checkItem" style="cursor:pointer" onclick="changePage('${def.defId}');">
	          	  	<img src="themes/comm/images/close.gif" style="margin:0 3px 3px 0; vertical-align:middle"/><span id="span_check_${def.defId }">${def.checkName }</span>
	          	  </td></tr>
	</c:forEach>
	          	</table>
          	</div>
          </td>
     	  <td width="67%" align="center" valign="top" style="padding:41px 0 0">
			<table width="100%" class="form-table" border="0" align="center" cellpadding="0" cellspacing="0" >
			  <colgroup>
				<col style="background:rgb(250,250,250)" style="text-align:right" width="20%">
				<col style="background:rgb(250,250,250)" width="80%">
			  </colgroup>
			  <tr>
			  	<td valign="top">核对说明：</td>				
			   	<td id="formulaDesc"></td>
			  </tr>
			</table>
		  </td>
		</tr>
	  </table>
	  
	  <div id="ListDiv" align="center" style="padding:0 2px" >
	   <div style="width:100%;overflow-x:auto;scrollbar-face-color: #dcdcdc; scrollbar-highlight-color: #ffffff; scrollbar-shadow-color: #ffffff; scrollbar-3dlight-color: #ffffff; scrollbar-arrow-color: #737373; scrollbar-track-color: #ffffff; scrollbar-darkshadow-color: #ffffff;">
	  	<input type="hidden" id="chkId" value="${checkR12.id }">
	  	<input type="hidden" id="relateChkId" value="${checkR12.modifyObj.id }">
	  	<table id="01060202resultList_0" cellSpacing="0" cellPadding="0" width="100%" >
    	  <tr><td>
        	<table cellSpacing="0" cellPadding="0" width="100%" height="100%" border="0" bordercolor="#AEAEAE" rules="rows" style="border-collapse:collapse;font-size:9pt;">
          	  <thead>
            	<tr class="queryList_titlebg" height="27">
            	  <th align="right" width="40%" nowrap class="table_td_font">项目名称&nbsp;&nbsp;</th>
            	  <th align="left" width="20%" nowrap class="table_td_font;line-height:1.2">原始值</th>
            	  <th align="left" width="40%" nowrap class="table_td_font;line-height:1.2">调整后值</th>
            	</tr>
   			  </thead>
  			  <tbody>
  			  	<tr class="table_td_font" bgColor="#ffffff">
  			  		<td align="right"  height="25px" class="queryList_linebg" nowrap id="i1">客户资金账户汇总余额：&nbsp;</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap>${checkR12.accSumAmtText }</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap id="accSumAmt">${checkR12.modifyObj.accSumAmtText }</td>
  			  	</tr>
  			  	<tr class="table_td_font" bgColor="#ffffff">
  			  		<td align="right"  height="25px" class="queryList_linebg" nowrap id="i2">客户资金专用银行存款：&nbsp;</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap>${checkR12.bankAmtText }</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap id="bankAmt">${checkR12.modifyObj.bankAmtText }</td>
  			  	</tr>
  			  	<tr class="table_td_font" bgColor="#ffffff">
  			  		<td align="right"  height="25px" class="queryList_linebg" nowrap id="i3">客户结算备付金：&nbsp;</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap>${checkR12.reservesAmtText }</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap id="reservesAmt">${checkR12.modifyObj.reservesAmtText }</td>
  			  	</tr>
  			  	<tr class="table_td_font" bgColor="#ffffff">
  			  		<td align="right"  height="25px" class="queryList_linebg" nowrap id="i4">客户交易保证金(A13)：&nbsp;</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap>${checkR12.bailA13AmtText }</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap id="bailA13Amt">${checkR12.modifyObj.bailA13AmtText }</td>
  			  	</tr>
  			  	<tr class="table_td_font" bgColor="#ffffff">
  			  		<td align="right"  height="25px" class="queryList_linebg" nowrap id="i5">客户交易保证金(中登)：&nbsp;</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap>${checkR12.bailSdcAmtText }</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap id="bailSdcAmt">${checkR12.modifyObj.bailSdcAmtText }</td>
  			  	</tr>
  			  	<tr class="table_td_font" bgColor="#ffffff">
  			  		<td align="right"  height="25px" class="queryList_linebg" nowrap id="i6">应收应付金额：&nbsp;</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap>${checkR12.arapAmtText }</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap id="arapAmt">${checkR12.modifyObj.arapAmtText }</td>
  			  	</tr>
  			  	<tr class="table_td_font" bgColor="#ffffff">
  			  		<td align="right"  height="25px" class="queryList_linebg" nowrap id="i7">应交收金额(不含三板数据)：&nbsp;</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap onclick="getSettleAmt('0')" style='cursor:hand;color:blue'>${checkR12.settleAmtText }</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap id="settleAmt">${checkR12.modifyObj.settleAmtText }</td>
  			  	</tr>
  			  	<tr class="table_td_font" bgColor="#ffffff">
  			  		<td align="right"  height="25px" class="queryList_linebg" nowrap id="i8">证券公司向客户扣收的手续费：&nbsp;</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap>${checkR12.fullCommText }</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap id="fullComm">${checkR12.modifyObj.fullCommText }</td>
  			  	</tr>
  			  	<tr class="table_td_font" bgColor="#ffffff">
  			  		<td align="right"  height="25px" class="queryList_linebg" nowrap id="i9">证券公司客户资金存款账户收到的利息：&nbsp;</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap>${checkR12.bankInterestText }</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap id="bankInterest">${checkR12.modifyObj.bankInterestText }</td>
  			  	</tr>
  			  	<tr class="table_td_font" bgColor="#ffffff">
  			  		<td align="right"  height="25px" class="queryList_linebg" nowrap id="i10">证券公司支付登记公司的一级费用(不含三板数据)：&nbsp;</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap onclick="getSettleAmt('0')" style='cursor:hand;color:blue'>${checkR12.sdcCommAmtText }</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap id="sdcCommAmt">${checkR12.modifyObj.sdcCommAmtText }</td>
  			  	</tr>
  			  	<tr class="table_td_font" bgColor="#ffffff">
  			  		<td align="right"  height="25px" class="queryList_linebg" nowrap id="i11">证券公司向客户支付的结息金额：&nbsp;</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap>${checkR12.secInterestText }</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap id="secInterest">${checkR12.modifyObj.secInterestText }</td>
  			  	</tr>
  			  	<tr class="table_td_font" bgColor="#ffffff">
  			  		<td align="right"  height="25px" class="queryList_linebg" nowrap id="i12">银行收取的手续费：&nbsp;</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap>${checkR12.bankCommText }</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap id="bankComm">${checkR12.modifyObj.bankCommText }</td>
  			  	</tr>
  			  	<tr class="table_td_font" bgColor="#ffffff">
  			  		<td align="right"  height="25px" class="queryList_linebg" nowrap id="i13">清算金额(三板)：&nbsp;</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap>${checkR12.sqtClearAmtText }</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap id="sqtClearAmt">${checkR12.modifyObj.sqtClearAmtText }</td>
  			  	</tr>
  			  	<tr class="table_td_font" bgColor="#ffffff">
  			  		<td align="right"  height="25px" class="queryList_linebg" nowrap id="i14">印花税(三板)：&nbsp;</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap>${checkR12.sqtStamptaxText }</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap id="sqtStamptax">${checkR12.modifyObj.sqtStamptaxText }</td>
  			  	</tr>
  			  	<tr class="table_td_font" bgColor="#ffffff">
  			  		<td align="right"  height="25px" class="queryList_linebg" nowrap>挪用金额：&nbsp;</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap>${checkR12.discAmtText }</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap id="discAmt">${checkR12.modifyObj.discAmtText }</td>
  			  	</tr>
  			  	<tr class="table_td_font" bgColor="#ffffff">
  			  		<td align="right"  height="25px" class="queryList_linebg" nowrap>备注：&nbsp;</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap>${checkR12.note }</td>
  			  		<td align="left"  height="25px" class="queryList_linebg" nowrap id="note">${checkR12.modifyObj.note }</td>
  			  	</tr>
          	  </tbody>
        	</table>
   		  </td></tr>
   		  <tr><td class="query_bottomimg"></td></tr>
    	  <tr><td height="5px"></td></tr>
  	  	</table>
  	   </div>
	  </div>
	 
	   <div style="text-align:left;line-height:16px;color:#A0A0A0;padding:10px;">
	  	<b>计算公式：</b><br/>
挪用金额 = 客户资金账户汇总余额 - 客户资金专用银行存款 - 客户结算备付金 - 客户交易保证金(A13) - 客户交易保证金(中登) - 应收应付金额 - 
应交收金额(不含三板数据) + 证券公司向客户扣收的手续费 + 证券公司客户资金存款账户收到的利息 - 证券公司支付登记公司的一级费用(不含三板数据) - 
证券公司向客户支付的结息金额 - 银行收取的手续费 - 清算金额(三板) + 印花税(三板)
	  </div>
	</div>
	    
<c:forEach var="item" items="${chkItems}" >
	<input type="hidden" value="${item.itemId }" class="menuChkItemId">
</c:forEach>	  
  </body>
</html>
